<template>
    <div>
      <el-pagination
        @size-change="callFather"
        @current-change="callFather"
        :current-page="param.currentPage"
        :page-sizes="[10, 20, 30, 50]"
        :page-size="param.pageSize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="param.total">
      </el-pagination>
    </div>
</template>
<script>
// 导入组件
export default {
  name: 'Pagination',
  props: {
    pageparam: Object
  },
  data() {
    return {
      param: this.pageparam
    }
  },
  // 函数方法
  methods: {
    callFather(){
      this.$emit("callFather", param)
    }
  }
}
</script>
<style >

</style>
